# def func1():
#     print("您好")
#     func2()


# def func2():
#     print("你好")

# func1()

# def func1():
#     print("func1")
#     def func2():
#         print("func2")
#     print("结束")
#     # 在func1里面访问func2
#     func2()


# func1()

def func1():
    print("func1_before")
    def func2():
        print("func2_before")
        def func3():
            print("func3")
        func3()
        print("func2_after")
    func2()
    print("func1_after")


func1()